package com.netease.nim.uikit.api

import android.content.Intent
import www.wen.com.common.BuildConfig

object IntentFactory {
    fun obtainIMProxy(sessionId: String?, serverId: String?) =
        Intent(BuildConfig.APPLICATION_ID + ".action.IM_PROXY_ACTIVITY")
            .putExtra("type", 0)
            .putExtra("sessionId", sessionId)
            .putExtra("serverId", serverId)

    fun obtainPersonalHomepageFragmentIMProxy(userId: String?) =
        Intent(BuildConfig.APPLICATION_ID + ".action.IM_PROXY_ACTIVITY")
            .putExtra("type", 1)
            .putExtra("userId", userId)

    fun obtainMyPersonalHomepageFragmentIMProxy() =
        Intent(BuildConfig.APPLICATION_ID + ".action.IM_PROXY_ACTIVITY")
            .putExtra("type", 2)
}